import request from '@/utils/request'

export const userLoginApi = ({
  mobile,
  code
}) => {
  return request({
    url: 'v1_0/authorizations',
    method: 'post',
    data: {
      mobile,
      code
    }
  })
}
/**
 * 发送短信验证码
 * @param {String} mobile - 手机号
 * @returns Promise
 */
export const sendMessageApi = (mobile) => {
  return request({
    url: `/v1_0/sms/codes/${mobile}`
  })
}
